package com.example.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.entity.ReimbursementRecord;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface ReimbursementRecordMapper extends BaseMapper<ReimbursementRecord> {
    @Select("SELECT * FROM ReimbursementRecord WHERE insuredPersonId = #{insuredPersonId}")
    List<ReimbursementRecord> getReimbursementRecordsByInsuredPersonId(@Param("insuredPersonId") int insuredPersonId);


}
